/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * AdminMenu.java
 *
 * Created on Oct 26, 2013, 10:15:32 PM
 */
package sims.gui;

import javax.swing.JOptionPane;
import javax.swing.border.Border;
import javax.swing.border.LineBorder;

/**
 *
 * @author NINH
 */
public class AdminMenu extends javax.swing.JPanel {

    Border border = LineBorder.createGrayLineBorder();

    /** Creates new form AdminMenu */
    public AdminMenu() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jplCategory = new javax.swing.JLabel();
        jplSupplier = new javax.swing.JLabel();
        jplProduct = new javax.swing.JLabel();
        jplPayment = new javax.swing.JLabel();
        jplBill = new javax.swing.JLabel();
        jplMeasure = new javax.swing.JLabel();
        jplEmployee = new javax.swing.JLabel();
        jplLogout = new javax.swing.JLabel();

        setPreferredSize(new java.awt.Dimension(1033, 41));

        jplCategory.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sims/images/category.png"))); // NOI18N
        jplCategory.setText("Category");
        jplCategory.setPreferredSize(new java.awt.Dimension(24, 24));
        jplCategory.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jplCategoryMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jplCategoryMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jplCategoryMouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jplCategoryMousePressed(evt);
            }
        });

        jplSupplier.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sims/images/supplier.png"))); // NOI18N
        jplSupplier.setText("Supplier");
        jplSupplier.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jplSupplierMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jplSupplierMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jplSupplierMouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jplSupplierMousePressed(evt);
            }
        });

        jplProduct.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sims/images/product.png"))); // NOI18N
        jplProduct.setText("Product");
        jplProduct.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jplProductMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jplProductMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jplProductMouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jplProductMousePressed(evt);
            }
        });

        jplPayment.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sims/images/payment.png"))); // NOI18N
        jplPayment.setText("Payment");
        jplPayment.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jplPaymentMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jplPaymentMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jplPaymentMouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jplPaymentMousePressed(evt);
            }
        });

        jplBill.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sims/images/bill.png"))); // NOI18N
        jplBill.setText("Bill");
        jplBill.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jplBillMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jplBillMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jplBillMouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jplBillMousePressed(evt);
            }
        });

        jplMeasure.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sims/images/measure.png"))); // NOI18N
        jplMeasure.setText("Measure");
        jplMeasure.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jplMeasureMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jplMeasureMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jplMeasureMouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jplMeasureMousePressed(evt);
            }
        });

        jplEmployee.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sims/images/employee.png"))); // NOI18N
        jplEmployee.setText("Employee");
        jplEmployee.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jplEmployeeMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jplEmployeeMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jplEmployeeMouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jplEmployeeMousePressed(evt);
            }
        });

        jplLogout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sims/images/exit.png"))); // NOI18N
        jplLogout.setText("Logout");
        jplLogout.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jplLogoutMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jplLogoutMouseExited(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jplCategory, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addComponent(jplSupplier, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addComponent(jplProduct, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addComponent(jplPayment, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addComponent(jplBill, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20)
                .addComponent(jplMeasure, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jplEmployee, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jplLogout, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(258, 258, 258))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jplCategory, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jplSupplier, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jplProduct, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jplPayment, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jplBill, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jplMeasure, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jplEmployee, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jplLogout, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void jplCategoryMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplCategoryMouseClicked
        //
    }//GEN-LAST:event_jplCategoryMouseClicked

    private void jplCategoryMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplCategoryMouseEntered
        jplCategory.setBorder(border);
    }//GEN-LAST:event_jplCategoryMouseEntered

    private void jplCategoryMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplCategoryMouseExited
        jplCategory.setBorder(null);
    }//GEN-LAST:event_jplCategoryMouseExited

    private void jplSupplierMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplSupplierMouseEntered
        jplSupplier.setBorder(border);
    }//GEN-LAST:event_jplSupplierMouseEntered

    private void jplSupplierMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplSupplierMouseExited
        jplSupplier.setBorder(null);
    }//GEN-LAST:event_jplSupplierMouseExited

    private void jplProductMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplProductMouseEntered
        jplProduct.setBorder(border);
    }//GEN-LAST:event_jplProductMouseEntered

    private void jplProductMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplProductMouseExited
        // TODO add your handling code here:
        jplProduct.setBorder(null);
    }//GEN-LAST:event_jplProductMouseExited

    private void jplPaymentMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplPaymentMouseEntered
        // TODO add your handling code here:
        jplPayment.setBorder(border);
    }//GEN-LAST:event_jplPaymentMouseEntered

    private void jplPaymentMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplPaymentMouseExited
        // TODO add your handling code here:
        jplPayment.setBorder(null);
    }//GEN-LAST:event_jplPaymentMouseExited

    private void jplBillMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplBillMouseEntered
        // TODO add your handling code here:
        jplBill.setBorder(border);
    }//GEN-LAST:event_jplBillMouseEntered

    private void jplBillMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplBillMouseExited
        // TODO add your handling code here:
        jplBill.setBorder(null);
    }//GEN-LAST:event_jplBillMouseExited

    private void jplMeasureMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplMeasureMouseEntered
        // TODO add your handling code here:
        jplMeasure.setBorder(border);
    }//GEN-LAST:event_jplMeasureMouseEntered

    private void jplMeasureMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplMeasureMouseExited
        // TODO add your handling code here:
        jplMeasure.setBorder(null);
    }//GEN-LAST:event_jplMeasureMouseExited

    private void jplEmployeeMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplEmployeeMouseEntered
        // TODO add your handling code here:
        jplEmployee.setBorder(border);
    }//GEN-LAST:event_jplEmployeeMouseEntered

    private void jplEmployeeMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplEmployeeMouseExited
        // TODO add your handling code here:
        jplEmployee.setBorder(null);
    }//GEN-LAST:event_jplEmployeeMouseExited

    private void jplLogoutMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplLogoutMouseEntered
        // TODO add your handling code here:
        jplLogout.setBorder(border);
    }//GEN-LAST:event_jplLogoutMouseEntered

    private void jplLogoutMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplLogoutMouseExited
        // TODO add your handling code here:
        jplLogout.setBorder(null);
    }//GEN-LAST:event_jplLogoutMouseExited

    private void jplSupplierMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplSupplierMouseClicked
        // TODO add your handling code here:
//        MainForm.self.AddPanelContent(new Supplier());
    }//GEN-LAST:event_jplSupplierMouseClicked

    private void jplProductMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplProductMouseClicked
        // TODO add your handling code here:
        //MainForm.self.AddPanelContent(new Product());
    }//GEN-LAST:event_jplProductMouseClicked

    private void jplPaymentMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplPaymentMouseClicked
        // TODO add your handling code here:
//        MainForm.self.AddPanelContent(new Payment());
    }//GEN-LAST:event_jplPaymentMouseClicked

    private void jplBillMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplBillMouseClicked
        // TODO add your handling code here:
//        MainForm.self.AddPanelContent(new Bill());
    }//GEN-LAST:event_jplBillMouseClicked

    private void jplMeasureMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplMeasureMouseClicked
        // TODO add your handling code here:
        //MainForm.self.AddPanelContent(new Measure());
    }//GEN-LAST:event_jplMeasureMouseClicked

    private void jplEmployeeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplEmployeeMouseClicked
        // TODO add your handling code here:
//        MainForm.self.AddPanelContent(new Employee());
    }//GEN-LAST:event_jplEmployeeMouseClicked

    private void jplCategoryMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplCategoryMousePressed
        // TODO add your handling code here:
        MainForm.self.AddPanelContent(new Category());
    }//GEN-LAST:event_jplCategoryMousePressed

    private void jplSupplierMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplSupplierMousePressed
        // TODO add your handling code here:
        MainForm.self.AddPanelContent(new Supplier());
    }//GEN-LAST:event_jplSupplierMousePressed

    private void jplProductMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplProductMousePressed
        // TODO add your handling code here:
        MainForm.self.AddPanelContent(new Product());
    }//GEN-LAST:event_jplProductMousePressed

    private void jplPaymentMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplPaymentMousePressed
        // TODO add your handling code here:
        MainForm.self.AddPanelContent(new Payment());
    }//GEN-LAST:event_jplPaymentMousePressed

    private void jplBillMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplBillMousePressed
        // TODO add your handling code here:
        MainForm.self.AddPanelContent(new Bill());
    }//GEN-LAST:event_jplBillMousePressed

    private void jplMeasureMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplMeasureMousePressed
        // TODO add your handling code here:
        MainForm.self.AddPanelContent(new Measure());
    }//GEN-LAST:event_jplMeasureMousePressed

    private void jplEmployeeMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jplEmployeeMousePressed
        // TODO add your handling code here:
        MainForm.self.AddPanelContent(new Employee());
    }//GEN-LAST:event_jplEmployeeMousePressed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jplBill;
    private javax.swing.JLabel jplCategory;
    private javax.swing.JLabel jplEmployee;
    private javax.swing.JLabel jplLogout;
    private javax.swing.JLabel jplMeasure;
    private javax.swing.JLabel jplPayment;
    private javax.swing.JLabel jplProduct;
    private javax.swing.JLabel jplSupplier;
    // End of variables declaration//GEN-END:variables
}
